home *** CD-ROM | disk | FTP | other *** search
/ Champak 122 / Vol 122.iso / games / super_cr.swf / scripts / DefineSprite_380 / frame_27 / DoAction.as
Encoding:
Text File  |  2011-01-06  |  694 b   |  30 lines

  1. Stage.showMenu = false;
  2. stop();
  3. var shine = 1;
  4. var frozen = true;
  5. mouse._ox = mouse._x;
  6. mouse.onEnterFrame = function()
  7. {
  8.    Mouse.hide();
  9.    if(!frozen)
  10.    {
  11.       this._x = _xmouse;
  12.       shine += Math.abs(this._x - this._ox);
  13.       this._ox = this._x;
  14.    }
  15.    batShine._alpha = shine / 700;
  16. };
  17. count.timeLimit = 8000;
  18. count.secsLeft = 8;
  19. count.startTime = getTimer();
  20. count.onEnterFrame = function()
  21. {
  22.    this.currentTime = getTimer() - this.startTime;
  23.    this.remainingTime = this.timeLimit - this.currentTime;
  24.    if(this.remainingTime < this.secsLeft * 1000)
  25.    {
  26.       this.gotoAndPlay("num" + this.secsLeft);
  27.       this.secsLeft = this.secsLeft - 1;
  28.    }
  29. };
  30.